<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./JS/jQuery.min.js"></script>
</head>
<body>
    <button id="btn">发起不带参数的请求</button>

    <script>
        $(function() {
            $('#btn').on('click',function() {
                // https://hmajax.itheima.net/api/province
                // http://www.liulongbin.top:3006/api/getbooks
                $.get('https://ajax-base-api-t.itheima.net/api/getbooks', function(res) {
                    console.log(res);
                })
            })
        })
    </script>
</body>
</html>